package com.hdu.careerplan.pojo.vo;

import com.hdu.careerplan.enums.StatusCode;
import lombok.Data;

@Data
public class ResultData {

    private Integer code;//状态码

    private String message;//信息

    private Object data;//传递的数据

    public ResultData(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResultData(StatusCode statusCode, Object data) {
        this.code = statusCode.getCode();
        this.message = statusCode.getMessage();
        this.data = data;
    }

}
